﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Usercontrols_Menu1 : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
            lblinfor.Text = "Your Reference Id is " + ": " + (string)Session["ReferenceId"];
           
        
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Session["ExperimentId"] = null;
        Session["YieldId"] = null;
        Session["LiquidCompId"] = null;
        Response.Redirect("Material.aspx");
    }

    protected void btnRef_Click(object sender, EventArgs e)
    {
        Session["ExperimentId"] = null;
        Session["YieldId"] = null;
        Session["LiquidCompId"] = null;
        Session["ReferenceId"] = null;
        Response.Redirect("AddReference.aspx");
    }
    protected void btnLogOut_Click(object sender, EventArgs e)
    {
        Session["ExperimentId"] = null;
        Session["YieldId"] = null;
        Session["LiquidCompId"] = null;
        Session["ReferenceId"] = null;
        Response.Redirect("Login.aspx");
    }
    protected void btnUpdateRefernce_Click(object sender, EventArgs e)
    {
        Session["ExperimentId"] = null;
        Session["YieldId"] = null;
        Session["LiquidCompId"] = null;
        Session["ReferenceId"] = null;
      Response.Redirect("EditReference.aspx");
       // Response.Redirect("SelectExperiment.aspx");
    }
}
